package com.cskaoyan.mall.pay.remote;

import com.cskaoyan.mall.commons.result.ServiceCallResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("duolai-order")
public interface OrderApiClient {

    /**
     *  支付成功时，更新订单状态，更新锁定库存，更新订单商品库存状态
     * @return
     */
    @PutMapping(value = "/rpc/pay/success")
    ServiceCallResponse payOrderSuccess(@RequestParam("orderId") String orderId);
}
